<template>
 <div class="test">
   <div class="title">请选择需要练习的试卷分类</div>
   <div class="btitle">大数据为你生成与法考考点范围，考试难度完全匹配的模块试卷</div>
    <div class="choseList">
      <div class="item" :class="type2==1?'active':''" @click="type2=1">法学</div>
      <div class="item" :class="type2==2?'active':''" @click="type2=2">非法学</div>
    </div>
    <div class="title">请选择需要练习的卷别分类</div>
   <div class="btitle">大数据为你生成与法考考点范围，考试难度完全匹配的模块试卷</div>
    <div class="choseList">
      <div class="item" :class="type1==1?'active':''" @click="type1=1">法律基础</div>
      <div class="item" :class="type1==2?'active':''" @click="type1=2">法律综合</div>
    </div>
    <div class="btn" @click="startTest">
      开始答题
    </div>
 </div>
</template>

<script>
// @ is an alias to /src

export default {
  name: 'user',
  data(){
    return{
      type1:1,
      type2:1
    }
  },
  components: {

  },
  mounted(){
  
  },
  methods:{
    startTest(){
      this.$sl('paper',{paper_name:null})
      // localStorage.setItem('paper',{paper_name:null})
      this.$router.push('/fakeTest')
    }
  }
}
</script>
<style lang="less" scoped>
.test{
  width: 100%;
  height: 100%;
  background-color: #fff;
  padding: 50px;
  .title{
    font-size: 18px;
    color: #111A34;
  }
  .btitle{
    font-size: 13px;
    color: #9DA3B2;
    margin-top: 9px;
  }
  .choseList{
    display: flex;
    margin-bottom: 40px;
    .item{
      width: 345px;
      height: 50px;
      background: #f7f8fa;
      border-radius: 6px;
      margin-top: 25px;
      font-size: 16px;
      color: #41485D;
      line-height: 50px;
      box-sizing: border-box;
      text-align: center;
      margin-right: 32px;
      cursor: pointer;
    }
    .active{
      border: 1px solid #67b7ff;
      background: #e9f5ff;
      color: #268CFF;
    }
  }
    .btn{
      width: 345px;
      height: 50px;
      background: #268cff;
      border: 1px solid #67b7ff;
      border-radius: 26px;
      font-size: 16px;
      color: #FFF;
      line-height: 50px;
      text-align: center;
      margin: 0 auto;
      margin-top: 50px;
      cursor: pointer;
    }
}
</style>